<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "wanka";

// 创建连接
$conn = new mysqli($servername, $username, '', $dbname);
// 检测连接


$ph = $_POST['phone'];

$sql = 'select * from person where phone='.$ph;
	if(mysqli_query($conn, $sql)){
	echo '找回成功';
	};



$conn->close();
?>